<%@ page import="java.util.HashMap,common.CommonUtil,java.util.*,common.*" contentType="text/html; charset=utf-8" %><%
UserSession userSession = (UserSession)session.getAttribute("user"); 

String login_id = null;
String user_id = null;

if(userSession!= null){
	login_id = userSession.getLogin_id();
	user_id = userSession.getUser_id();
}

HashMap listMap=(HashMap)request.getAttribute("list_map");

HashMap map  = null;
ArrayList list=null;


if (listMap!=null){
    list=(ArrayList)listMap.get("mainContent");
}

//System.out.println("list ========> " + list);

String seq = null;
String grade = null;
String exam_num = null;
String level_code = null;
String testlet = null;

if(list != null){
	if(list.size() > 0){
		seq = (String)((HashMap)list.get(0)).get("seq");
		grade = (String)((HashMap)list.get(0)).get("grade");
		exam_num = (String)((HashMap)list.get(0)).get("exam_num");
		level_code = (String)((HashMap)list.get(0)).get("level_code");
		testlet = (String)((HashMap)list.get(0)).get("testlet");
		
		System.out.println("list ========> " + list);
	}
}

%>
<script>
parent.document.mainform.seq.value = '<%=seq%>';
parent.document.mainform.grade.value = '<%=grade%>';
parent.document.mainform.exam_num.value = '<%=exam_num%>';
if('<%=grade%>'=='LOW'){
	parent.document.mainform.grade[1].selected = true;
}else if('<%=grade%>'=='MEDIUM'){
	parent.document.mainform.grade[2].selected = true;
}else if('<%=grade%>'=='HIGH'){
	parent.document.mainform.grade[3].selected = true;
}

parent.document.mainform.testlet[<%=testlet%>].selected = true;

parent.setSPSelect(parent.document.mainform.level_code,'<%=level_code%>', '난이도선택', 'level');
</script>
